package com.dcbeida.bean;

public class DrugBeanWithPand {
    private int drugid;
    private int quantity;
    private String drugcode;
    private String drugname;

    private String batchnumber;

    private String expiredate;


    //额外的参数
    private boolean isFirst;//
    private int count;//总数

    public boolean isFirst() {
        return isFirst;
    }

    public void setFirst(boolean first) {
        isFirst = first;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getDrugid() {
        return drugid;
    }

    public void setDrugid(int drugid) {
        this.drugid = drugid;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public String getDrugcode() {
        return drugcode;
    }

    public void setDrugcode(String drugcode) {
        this.drugcode = drugcode;
    }

    public String getDrugname() {
        return drugname;
    }

    public void setDrugname(String drugname) {
        this.drugname = drugname;
    }

    public String getBatchnumber() {
        return batchnumber;
    }

    public void setBatchnumber(String batchnumber) {
        this.batchnumber = batchnumber;
    }

    public String getExpiredate() {
        return expiredate;
    }

    public void setExpiredate(String expiredate) {
        this.expiredate = expiredate;
    }

    @Override
    public boolean equals(Object obj) {
        DrugBeanWithPand other = (DrugBeanWithPand) obj;
        if (other == null)
            return false;
        return this.drugcode.equals(other.getDrugcode()) && this.drugid == other.getDrugid();
    }
}
